<div class="row">
    <div class="col-lg-6">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">企业客户列表</h3>
            </div><!-- /.box-header -->
            <div class="box-body">
                <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
                    <div class="row">
                        <div class="col-sm-6"></div>
                        <div class="col-sm-6"></div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <table class="table table-bordered table-hover dataTable">
                                <thead>
                                <tr role="row">
                                    <th class="sorting">公司名称</th>
                                    <th class="sorting">负责人电话</th>
                                    <th class="sorting">公司座机</th>
                                    <th class="sorting">财务电话</th>
                                    <th class="sorting">公司地址</th>
                                    <th class="sorting">未付款</th>
                                    <th class="sorting">总消费</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php foreach($data['Company_Query'] as $k):?>
                                    <tr>
                                        <td><?php echo $k['name']?></td>
                                        <td><?php echo $k['f_mobile']?></td>
                                        <td><?php echo $k['z_mobile']?></td>
                                        <td><?php echo $k['c_mobile']?></td>
                                        <td><?php echo $k['addr']?></td>
                                        <td>
                                            <?php
                                                for($i=0;$i<=$data['Company_Unpaid'][$i];$i++){
                                                    if ($k['name'] == $data['Company_Unpaid'][$i]['g_id']){
                                                        echo $data['Company_Unpaid'][$i]['price'];
                                                    }
                                                }
                                            ?>
                                        </td>
                                        <td>
                                            <?php
                                            for($i=0;$i<=$data['Clents_Company_Consumer_Sum'][$i];$i++){
                                                if ($k['name'] == $data['Clents_Company_Consumer_Sum'][$i]['g_id']){
                                                    echo $data['Clents_Company_Consumer_Sum'][$i]['price'];
                                                }
                                            }
                                            ?>
                                        </td>
                                    </tr>
                                <?php endforeach ?>
                                </tbody>
                                <tfoot>
                                <tr role="row">
                                    <th class="sorting">公司名称</th>
                                    <th class="sorting">负责人电话</th>
                                    <th class="sorting">公司座机</th>
                                    <th class="sorting">财务电话</th>
                                    <th class="sorting">地址</th>
                                    <th class="sorting">总消费</th>
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div><!-- /.box-body -->
            </div>
        </div>
    </div>

    <!-- 右边 -->
    <div class="col-lg-6">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">会员列表</h3>
            </div><!-- /.box-header -->
            <div class="box-body">
                <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
                    <div class="row">
                        <div class="col-sm-6"></div>
                        <div class="col-sm-6"></div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <table class="table table-bordered table-hover dataTable">
                                <thead>
                                <tr role="row">
                                    <th class="sorting">帐号</th>
                                    <th class="sorting">姓名</th>
                                    <th class="sorting">手机号码</th>
                                    <th class="sorting">住址</th>
                                    <th class="sorting">免费上门次数</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php foreach($data['Vip_Query'] as $k):?>
                                    <tr>
                                        <td><?php echo $k['acc']?></td>
                                        <td><?php echo $k['name']?></td>
                                        <td><?php echo $k['mobile']?></td>
                                        <td><?php echo $k['addr']?></td>
                                        <td><?php echo $k['free_num']?></td>
                                        <td>
                                            <?php/*
                                            for($i=0;$i<=$data['Company_Unpaid'][$i];$i++){
                                                if ($k['name'] == $data['Company_Unpaid'][$i]['g_id']){
                                                    echo $data['Company_Unpaid'][$i]['price'];
                                                }
                                            }*/
                                            ?>
                                        </td>
                                        <td>
                                            <?php/*
                                            for($i=0;$i<=$data['Clents_Company_Consumer_Sum'][$i];$i++){
                                                if ($k['name'] == $data['Clents_Company_Consumer_Sum'][$i]['g_id']){
                                                    echo $data['Clents_Company_Consumer_Sum'][$i]['price'];
                                                }
                                            }*/
                                            ?>
                                        </td>
                                    </tr>
                                <?php endforeach ?>
                                </tbody>
                                <tfoot>
                                <tr role="row">
                                    <th class="sorting">帐号</th>
                                    <th class="sorting">姓名</th>
                                    <th class="sorting">手机号码</th>
                                    <th class="sorting">住址</th>
                                    <th class="sorting">免费上门次数</th>
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div><!-- /.box-body -->
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-lg-6">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">长城客户列表</h3>
            </div><!-- /.box-header -->
            <div class="box-body">
                <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
                    <div class="row">
                        <div class="col-sm-6"></div>
                        <div class="col-sm-6"></div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <table class="table table-bordered table-hover dataTable">
                                <thead>
                                <tr role="row">
                                </tr>
                                </thead>
                                <tbody>
                                长城客户信息
                                </tbody>
                                <tfoot>
                                <tr role="row">
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div><!-- /.box-body -->
            </div>
        </div>
    </div>

    <!-- 右边 -->
    <div class="col-lg-6">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">备用</h3>
            </div><!-- /.box-header -->
            <div class="box-body">
                <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
                    <div class="row">
                        <div class="col-sm-6"></div>
                        <div class="col-sm-6"></div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <table class="table table-bordered table-hover dataTable">
                                <thead>
                                <tr role="row">
                                </tr>
                                </thead>
                                <tbody>
                                备用
                                </tbody>
                                <tfoot>
                                <tr role="row">
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div><!-- /.box-body -->
            </div>
        </div>
    </div>
</div>

